package com.edais.service;

import java.util.List;
import java.util.Map;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.edais.domain.RunningSignUpInfo;

@Service

public interface RunningService {

	/**
	 * 添加报名信息
	 * @param runingInfo
	 * @throws Exception
	 */
	public void addRunningSignUpInfo(RunningSignUpInfo runningInfo) throws Exception;


	/**
	 * 更新报名信息
	 * @param runingInfo
	 * @throws Exception
	 */
	public int updateRunningSignUpInfo(RunningSignUpInfo runningInfo) throws Exception;

	/**
	 * 查询剩余名额
	 * @param runingInfo
	 * @throws Exception
	 */
	public String getSurplusPeople();

	/**
	 * 查询报名者信息(考虑是否过期)
	 * @param runingInfo
	 * @throws Exception
	 */
	public List<RunningSignUpInfo> getEnrollInfo(Map<String, Object> map);
	
	/**
	 * 连连支付回调
	 * @param map
	 * @return
	 */
	public Map<String,Object> runningLLpayNotify(Map<String,Object> map);
	/**
	 * 查询已支付和有效报名时间内有效数据
	 * @param runingInfo
	 * @throws Exception
	 */
	public List<RunningSignUpInfo> getSignUpInInfo(Map<String, Object> map);
	
	/**
	 * 马拉松更新失败的订单
	 * @param map
	 * @return
	 */
	public Map<String,Object> marathonUpdateFaildOrder(Map<String,Object> map)  throws Exception;
}
